<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { getUser } from "../api/api";
const tableData = ref()
onMounted(()=>{
    userFB()
})
//获取数据
const userFB = async() => {
    const res = await getUser()  
    tableData.value = res.data.data
}
</script>

<template>
    <el-scrollbar>
        <el-table :data="tableData">
            <el-table-column prop="_id" label="id" width="300" />
            <el-table-column prop="name" label="用户名字" width="150" />
            <el-table-column prop="mail" label="用户邮箱" width="300" />
            <el-table-column prop="password" label="用户密码" width="150" />
            <el-table-column prop="vx" label="用户微信" width="150" />
            <el-table-column prop="phone" label="用户电话" />
        </el-table>
    </el-scrollbar>
</template>

<style scoped>
</style>